const { DatabaseError } = require("sequelize");

module.exports = {
  phoneNumberCannotBeEmpty: {
    code: "10001",
    message: "手机号不能为空",
    result: "",
  },
  phoneNumberAlreadyExists: {
    code: "10002",
    message: "用户已存在",
    result: "",
  },
  phoneNumberFormatError: {
    code: "10003",
    message: "手机号格式错误",
    result: "",
  },
  userRegisterError: {
    code: "10004",
    message: "用户注册失败",
    result: "",
  },
  userDoesNotExist: {
    code: "10005",
    message: "用户不存在",
    result: "",
  },
  InfinityError: {
    code: "10006",
    message: "用户名或密码错误",
    result: "",
  },
  userLoginError: {
    code: "10007",
    message: "用户登录失败",
    result: "",
  },
  tokenExpiredError: {
    code: "10008",
    message: "token已过期",
    result: "",
  },
  invalidToken: {
    code: "10009",
    message: "无效的token",
    result: "",
  },
  addError: {
    code: "10010",
    message: "添加失败",
    result: "",
  },
  deleteError: {
    code: "10011",
    message: "删除失败",
    result: "",
  },
  updateError: {
    code: "10012",
    message: "更新失败",
    result: "",
  },
  queryError: {
    code: "10013",
    message: "查询失败",
  },
  uploadError: {
    code: "10014",
    message: "上传失败",
  },
  DataDoesNotExist: {
    code: "10015",
    message: "数据不存在",
    result: "",
  },
  noPermission: {
    code: "10019",
    message: "没有权限访问,请联系管理员",
    result: "",
  },
  sendError:{
    code: "10020",
    message: "发送失败",
    result: "",
  },
  verificationCodeError:{
    code: "10021",
    message: "验证码错误",
    result: "",
  },
  verificationCodeExpired:{
    code: "10022",
    message: "验证码已过期",
    result: "",
  },
  verificationCodeSendError:{
    code: "10023",
    message: "验证码发送失败",
    result: "",
  },
};
